<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/modules/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-edit.php");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../css/<? echo $theme_folder ?>/user.css" rel="stylesheet" type="text/css"/>
    <?php include ROOT_PATH_.'/controller/common/modules/head.php'; ?>
    <?php include 'modules/head.php'; ?>

</head>


<body>

<div id="topbar">
    <?php include ROOT_PATH_.'/controller/common/modules/topbar.php'; ?>
</div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/modules/sidebar.php'; ?>
        </div>






<div id="content" class="layui-form">
	<div class="box member-add-box layui-form">
<h1>修改横幅</h1>

<form id="add-employee-form" method="post" action="detail-edit-function.php?sys_part=activity" enctype="multipart/form-data" class="layui-form">



    <fieldset class="layui-elem-field layui-field-title">
        <legend> 基本资料</legend>
    </fieldset>




    <li class="layui-form-item icon">

        <label class="layui-form-label">横幅</label>

        <div class="layui-input-block">

            <?php
            if($info['icon'] != 'alpha.gif' && $info['icon'] != ''){
                ?>
                <img src="/uploadfiles/event/<? echo  $info['icon'] ?>" width="100"/>
            <?php }?>
            <a href="detail-delete-img.php?nid=<?php echo $trans_nid ?>&img=icon&sys_part=<? echo $system_part ?>">
                删除</a>
            <span class="title-data">(请上传像素 640*415 的图片,格式为jpeg)</span>
        </div>
    </li>

    <li class="layui-form-item icon">
        <label class="layui-form-label">上传文件</label>
        <div class="layui-input-block">   <input type="file" name="icon" onchange="fileChange(this);"/></div><em class="explain">(上传列表图标)</em></li>




<!---->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">跳转路径</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="ai_link" value="--><?php //echo $info['link']?><!--" class="layui-input" >-->
<!--        </div>-->
<!--    </div>-->


    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="text" name="ai_listorder" value="<?php echo $info['listorder']?>" class="layui-input" >

        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="radio" name="ai_status" value="1" title="发布中" <?php if($info['status'] == '1'){ echo 'checked="checked"';}?>>
            <input type="radio" name="ai_status" value="2" title="未通过" <?php if($info['status'] == '2'){ echo 'checked="checked"';}?>>
            <input type="radio" name="ai_status" value="0" title="待审核" <?php if($info['status'] == '0'){ echo 'checked="checked"';}?>>

        </div>
    </div>

    <input type="hidden" name="nid" value="<?php echo $info['nid']?>"  >

        <div class="layui-form-item  ">
           <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
           </div>
        </div>



</form>
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>


<?php include ROOT_PATH_ . "/controller/common/modules/footer.php"; ?> </body>
</html>
